import { createStore, applyMiddleware } from 'redux'
// 引入为counter组件服务的reducer
import thunk from 'redux-thunk'
import promise from 'redux-promise'
import { setting_reducer } from './reducers'

// 要把异步actionCreator从ui组件中抽出去到action中，就得需要异步中间件applyMiddleware(thunk)
export default createStore(setting_reducer, applyMiddleware(thunk, promise))

